// 模板图标  TODO:最好走接口可配置颜色和背景色
export const iconMap = [
    {
        type: 'leave',
        name: '请假申请',
        className: 'qingjiashenqing',
        color: '#ff7760',
        backgroundColor: '#fff1ef'
    },
    {
        type: 'leavecancel',
        name: '销假申请',
        className: 'xiaojiashenqing',
        color: '#5590f6',
        backgroundColor: '#edf3fe'
    },
    {
        type: 'overtime',
        name: '加班申请',
        className: 'jiabanshenqing',
        color: '#44c69d',
        backgroundColor: '#ecf9f5'
    },
    {
        type: 'replenishmentcard',
        name: '补卡申请',
        className: 'bukashenqing',
        color: '#44c69d',
        backgroundColor: '#ecf9f5'
    },
    {
        type: 'getout',
        name: '外出申请',
        className: 'waichushenqing',
        color: '#ffa22d',
        backgroundColor: '#fff5ea'
    },
    {
        type: 'businesstrip',
        name: '出差申请',
        className: 'chuchashenqing',
        color: '#5590f6',
        backgroundColor: '#edf3fe'
    },
    {
        type: 'customerservice',
        name: '招聘需求申请',
        className: 'zhaopinxuqiushenqing',
        color: '#44c69d',
        backgroundColor: '#ecf9f5'
    },
    {
        type: 'interview',
        name: '面试申请',
        className: 'mianshishenqing',
        color: '#ff7760',
        backgroundColor: '#fff1ef'
    },
    {
        type: 'offer',
        name: 'OFFER申请',
        className: 'Offershenqing',
        color: '#5590f6',
        backgroundColor: '#edf3fe'
    },
    {
        type: 'entry',
        name: '入职申请',
        className: 'ruzhiliucheng',
        color: '#5590f6',
        backgroundColor: '#edf3fe'
    },
    {
        type: 'news',
        name: '新闻流程',
        className: 'xinwenliucheng',
        color: '#5590f6',
        backgroundColor: '#edf3fe'
    },
    {
        type: 'institutionRelease',
        name: '制度流程',
        className: 'zhiduliucheng',
        color: '#5590f6',
        backgroundColor: '#edf3fe'
    },
    {
        type: 'regular',
        name: '他人调岗申请',
        className: 'tarentiaogangshenqing',
        color: '#ff7760',
        backgroundColor: '#fff1ef'
    },
    {
        type: 'message',
        name: '我的档案',
        className: 'infos_namecard_icon_default1',
        color: '#ff7760',
        backgroundColor: '#fff1ef'
    },
    {
        type: 'main',
        name: '考勤概况',
        className: 'AttendanceGeneral',
        color: '#44C69D',
        backgroundColor: '#ECF9F5'
    },
    {
        type: 'calendar',
        name: '考勤日历',
        className: 'AttendanceCalendar',
        color: '#FFA22D',
        backgroundColor: '#FFF5EA'
    },
    {
        type: 'report',
        name: '考勤分析',
        className: 'AttendanceAnalyze',
        color: '#5590F6',
        backgroundColor: '#EEF3FE'
    },
    {
        type: 'attend',
        name: '出勤统计',
        className: 'Attendance',
        color: '#FF7760',
        backgroundColor: '#FFF1EF'
    },
    {
        type: 'employee',
        name: '员工管理',
        className: 'PeopleManagement1',
        color: '#44C69D',
        backgroundColor: '#ECF9F5'
    },
    {
        type: 'overtimeReport',
        name: '员工管理',
        className: 'OvertimeStatistics',
        color: '#FFA22D',
        backgroundColor: '#FFF5EA'
    }
];

export function getFlowType(iconType) {
    return iconMap.find(item => item.type === iconType);
}
